package com.github.caijh.mall.wechat.service.impl;

import java.util.List;
import javax.annotation.Resource;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.caijh.mall.common.PageParams;
import com.github.caijh.mall.wechat.dao.WechatQrcodeDao;
import com.github.caijh.mall.wechat.model.WechatQrcode;
import com.github.caijh.mall.wechat.request.WechatQrcodeSearchRequest;
import com.github.caijh.mall.wechat.service.WechatQrcodeService;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

/**
 * WechatQrcodeServiceImpl 接口实现
 * +----------------------------------------------------------------------
 * | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 * +----------------------------------------------------------------------
 * | Author: CRMEB Team <admin@crmeb.com>
 * +----------------------------------------------------------------------
 */
@Service
public class WechatQrcodeServiceImpl extends ServiceImpl<WechatQrcodeDao, WechatQrcode> implements WechatQrcodeService {

    @Resource
    private WechatQrcodeDao dao;


    /**
     * 列表
     *
     * @param request    请求参数
     * @param pageParams 分页类参数
     * @return List<WechatQrcode>
     * @author Mr.Zhang
     * @since 2020-04-18
     */
    @Override
    public List<WechatQrcode> getList(WechatQrcodeSearchRequest request, PageParams pageParams) {
        PageHelper.startPage(pageParams.getPage(), pageParams.getLimit());
        return dao.selectList(null);
    }

}

